import request from '@/utils/request'

export const getCallRecord = (data) => {
    return request({
        url: '/commandDispatch/getCallRecord',
        method: 'post',
        data
    })
}

export const getSpeedDialTree = () => {
    return request({
        url: '/commandDispatch/getSpeedDialTree',
        method: 'get',
    })
}

export const getNumberInfoList = (data) => {
    return request({
        url: '/commandDispatch/getNumberInfoList',
        method: 'post',
        data
    })
}

export const getSiteList = () => {
    return request({
        url: '/commandDispatch/getSiteList',
        method: 'get',
    })
}

export const getCommunicationInfoList = (params) => {
    return request({
        url: '/commandDispatch/getCommunicationInfoList',
        method: 'get',
        params
    })
}

export const selectEventInfoList = (data) => {
    return request({
        url: '/commandDispatch/selectEventInfoList',
        method: 'post',
        data
    })
}

export const selectCarInfoList = () => {
    return request({
        url: '/commandDispatch/selectCarInfoList',
        method: 'get',
    })
}

export const saveOrUpdateEvent = (data) => {
    return request({
        url: '/commandDispatch/saveOrUpdateEvent',
        method: 'post',
        data
    })
}

export const setHarassment = (data) => {
    return request({
        url: '/commandDispatch/setHarassment',
        method: 'post',
        data
    })
}

export const addRecord = (data) => {
    return request({
        url: '/commandDispatch/addRecord',
        method: 'post',
        data
    })
}

export const setConPhoneNumber = (data) => {
    return request({
        url: '/commandDispatch/setConPhoneNumber',
        method: 'post',
        data
    })
}
